<?php
/**
 * Created by PhpStorm.
 * User: haobin
 * Date: 2016/10/12
 * Time: 14:11
 */
require_once('../conn.php');
require_once('../functions.php');
if($_GET){
    $uid = $_GET['uid'];
    $user = $mysql->query("select * from `user` WHERE id = {$uid}");
    $imgurl = $user[0]['head'];
    $name = $user[0]['name'];
    $data['img'] = $imgurl;
    $data['name'] = $name;
    echo json_encode($data);
}
